<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>欢迎使用 BilibiliBlock</title>
  <style>
    /* 全局样式 */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      color: #333;
      background-color: #f9f9f9;
      padding: 0;
      margin: 0;
    }
    
    /* 头部 */
    header {
      background-color: #fb7299;
      color: white;
      padding: 24px 0;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .header-content {
      max-width: 800px;
      margin: 0 auto;
      padding: 0 16px;
    }
    
    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }
    
    .logo img {
      width: 48px;
      height: 48px;
      margin-right: 12px;
    }
    
    .logo h1 {
      font-size: 32px;
      font-weight: 600;
    }
    
    .header-description {
      font-size: 18px;
      opacity: 0.9;
    }
    
    /* 主要内容 */
    main {
      max-width: 800px;
      margin: 40px auto;
      padding: 0 16px;
    }
    
    .section {
      margin-bottom: 40px;
      background-color: white;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .section h2 {
      font-size: 24px;
      margin-bottom: 16px;
      color: #fb7299;
      border-bottom: 1px solid #eee;
      padding-bottom: 8px;
    }
    
    .section p {
      margin-bottom: 16px;
    }
    
    ul {
      margin-left: 24px;
      margin-bottom: 16px;
    }
    
    li {
      margin-bottom: 8px;
    }
    
    /* 功能展示 */
    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }
    
    .feature-card {
      background-color: #f9f9f9;
      border-radius: 8px;
      padding: 16px;
      text-align: center;
    }
    
    .feature-icon {
      font-size: 32px;
      margin-bottom: 10px;
    }
    
    .feature-title {
      font-weight: 600;
      margin-bottom: 8px;
    }
    
    /* 使用说明 */
    .usage-steps {
      counter-reset: step;
    }
    
    .step {
      margin-bottom: 24px;
      display: flex;
      align-items: flex-start;
    }
    
    .step-number {
      counter-increment: step;
      width: 32px;
      height: 32px;
      background-color: #fb7299;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      margin-right: 16px;
      flex-shrink: 0;
    }
    
    .step-number::before {
      content: counter(step);
    }
    
    .step-content h3 {
      margin-bottom: 8px;
    }
    
    /* 注意事项 */
    .note {
      background-color: #fff8e6;
      border-left: 4px solid #ffcc00;
      padding: 12px 16px;
      margin-bottom: 16px;
      border-radius: 0 4px 4px 0;
    }
    
    /* 底部 */
    footer {
      background-color: #333;
      color: #fff;
      padding: 24px 0;
      text-align: center;
    }
    
    footer a {
      color: #fb7299;
      text-decoration: none;
    }
    
    footer a:hover {
      text-decoration: underline;
    }
    
    /* 按钮 */
    .button {
      display: inline-block;
      padding: 10px 20px;
      background-color: #fb7299;
      color: white;
      border-radius: 4px;
      text-decoration: none;
      font-weight: 500;
      transition: background-color 0.2s;
    }
    
    .button:hover {
      background-color: #ff85ad;
    }
    
    /* 暗色模式 */
    @media (prefers-color-scheme: dark) {
      body {
        background-color: #222;
        color: #eee;
      }
      
      .section {
        background-color: #333;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      }
      
      .section h2 {
        border-bottom-color: #444;
      }
      
      .feature-card {
        background-color: #444;
      }
      
      .note {
        background-color: #3a3a30;
        border-left-color: #ffcc00;
      }
    }
  </style>
</head>
<body>
  <header>
    <div class="header-content">
      <div class="logo">
        <img src="../src/images/icon128.png" alt="BilibiliBlock Logo">
        <h1>BilibiliBlock</h1>
      </div>
      <p class="header-description">一键拉黑B站视频作者，让你的B站体验更满意</p>
    </div>
  </header>
  
  <main>
    <section class="section">
      <h2>欢迎使用</h2>
      <p>感谢您安装 BilibiliBlock 扩展！这个工具可以帮助您轻松地拉黑 B站 上不喜欢的视频作者，使您的观看体验更加愉悦。</p>
      <p>BilibiliBlock 是一个开源项目，为B站用户提供简洁高效的用户拉黑功能。</p>
    </section>
    
    <section class="section">
      <h2>功能特点</h2>
      <div class="feature-grid">
        <div class="feature-card">
          <div class="feature-icon">🚫</div>
          <div class="feature-title">一键拉黑</div>
          <p>在视频卡片上直接拉黑UP主，无需进入个人空间</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">📋</div>
          <div class="feature-title">黑名单管理</div>
          <p>查看已拉黑的用户列表</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">🔄</div>
          <div class="feature-title">实时更新</div>
          <p>自动处理动态加载的内容</p>
        </div>
        <div class="feature-card">
          <div class="feature-icon">🌙</div>
          <div class="feature-title">暗色模式</div>
          <p>支持浏览器的暗色模式</p>
        </div>
      </div>
    </section>
    
    <section class="section">
      <h2>使用说明</h2>
      <div class="usage-steps">
        <div class="step">
          <div class="step-number"></div>
          <div class="step-content">
            <h3>浏览B站</h3>
            <p>在哔哩哔哩网站上浏览首页、频道或搜索结果时，每个视频卡片下方的作者信息旁边会出现一个「拉黑」按钮。</p>
          </div>
        </div>
        <div class="step">
          <div class="step-number"></div>
          <div class="step-content">
            <h3>一键拉黑</h3>
            <p>当看到不喜欢的UP主视频时，直接点击「拉黑」按钮，系统会立即将该UP主加入黑名单。</p>
          </div>
        </div>
        <div class="step">
          <div class="step-number"></div>
          <div class="step-content">
            <h3>查看黑名单</h3>
            <p>点击浏览器工具栏中的扩展图标，可以查看已拉黑的UP主列表，也可以从列表中移除特定用户。</p>
          </div>
        </div>
      </div>
      
      <div class="note">
        <strong>注意：</strong> 使用拉黑功能前，请确保您已登录哔哩哔哩账号，否则拉黑操作将无法成功。
      </div>
    </section>
    
    <section class="section">
      <h2>关于</h2>
      <p>BilibiliBlock 是一个开源项目，遵循 MIT 许可证。您可以在 GitHub 上查看源代码、报告问题或贡献代码。</p>
      <p>
        <a href="https://github.com/yanstu/BilibiliBlock" target="_blank" class="button">GitHub 仓库</a>
      </p>
    </section>
  </main>
  
  <footer>
    <p>Copyright &copy; 2024 BilibiliBlock</p>
    <p>开源项目 · <a href="https://github.com/yanstu/BilibiliBlock" target="_blank">GitHub</a></p>
  </footer>
</body>
</html>